home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / DELPHI / IMS16.ZIP / WSERR.INC < prev    next >
Encoding:
Text File  |  1996-11-27  |  3.7 KB  |  98 lines

  1.  
  2. #define WSABASEERR              10000
  3.  
  4. (*
  5.  * Windows Sockets definitions of regular Microsoft C error
  6. constants
  7.  *)
  8. #define WSAEINTR                (WSABASEERR+4)
  9. #define WSAEBADF                (WSABASEERR+9)
  10. #define WSAEACCES               (WSABASEERR+13)
  11. #define WSAEFAULT               (WSABASEERR+14)
  12. #define WSAEINVAL               (WSABASEERR+22)
  13. #define WSAEMFILE               (WSABASEERR+24)
  14.  
  15. (*
  16.  * Windows Sockets definitions of regular Berkeley error
  17. constants
  18.  *)
  19. #define WSAEWOULDBLOCK          (WSABASEERR+35)
  20. #define WSAEINPROGRESS          (WSABASEERR+36)
  21. #define WSAEALREADY             (WSABASEERR+37)
  22. #define WSAENOTSOCK             (WSABASEERR+38)
  23. #define WSAEDESTADDRREQ         (WSABASEERR+39)
  24. #define WSAEMSGSIZE             (WSABASEERR+40)
  25. #define WSAEPROTOTYPE           (WSABASEERR+41)
  26. #define WSAENOPROTOOPT          (WSABASEERR+42)
  27. #define WSAEPROTONOSUPPORT      (WSABASEERR+43)
  28. #define WSAESOCKTNOSUPPORT      (WSABASEERR+44)
  29. #define WSAEOPNOTSUPP           (WSABASEERR+45)
  30. #define WSAEPFNOSUPPORT         (WSABASEERR+46)
  31. #define WSAEAFNOSUPPORT         (WSABASEERR+47)
  32. #define WSAEADDRINUSE           (WSABASEERR+48)
  33. #define WSAEADDRNOTAVAIL        (WSABASEERR+49)
  34. #define WSAENETDOWN             (WSABASEERR+50)
  35. #define WSAENETUNREACH          (WSABASEERR+51)
  36. #define WSAENETRESET            (WSABASEERR+52)
  37. #define WSAECONNABORTED         (WSABASEERR+53)
  38. #define WSAECONNRESET           (WSABASEERR+54)
  39. #define WSAENOBUFS              (WSABASEERR+55)
  40. #define WSAEISCONN              (WSABASEERR+56)
  41. #define WSAENOTCONN             (WSABASEERR+57)
  42. #define WSAESHUTDOWN            (WSABASEERR+58)
  43. #define WSAETOOMANYREFS         (WSABASEERR+59)
  44. #define WSAETIMEDOUT            (WSABASEERR+60)
  45. #define WSAECONNREFUSED         (WSABASEERR+61)
  46. #define WSAELOOP                (WSABASEERR+62)
  47. #define WSAENAMETOOLONG         (WSABASEERR+63)
  48. #define WSAEHOSTDOWN            (WSABASEERR+64)
  49. #define WSAEHOSTUNREACH         (WSABASEERR+65)
  50. #define WSAENOTEMPTY            (WSABASEERR+66)
  51. #define WSAEPROCLIM             (WSABASEERR+67)
  52. #define WSAEUSERS               (WSABASEERR+68)
  53. #define WSAEDQUOT               (WSABASEERR+69)
  54. #define WSAESTALE               (WSABASEERR+70)
  55. #define WSAEREMOTE              (WSABASEERR+71)
  56.  
  57. (*
  58.  * Extended Windows Sockets error constant definitions
  59.  *)
  60. #define WSASYSNOTREADY          (WSABASEERR+91)
  61. #define WSAVERNOTSUPPORTED      (WSABASEERR+92)
  62. #define WSANOTINITIALISED       (WSABASEERR+93)
  63. #define WSAEDISCON            (WSABASEERR+94)
  64.  
  65. (*
  66.  * Error return codes from gethostbyname() and
  67. gethostbyaddr()
  68.  * (when using the resolver). Note that these errors are
  69.  * retrieved via WSAGetLastError() and must therefore follow
  70.  * the rules for avoiding clashes with error numbers from
  71.  * specific implementations or language run-time systems.
  72.  * For this reason the codes are based at WSABASEERR+1001.
  73.  * Note also that [WSA]NO_ADDRESS is defined only for
  74.  * compatibility purposes.
  75.  *)
  76.  
  77. #define h_errno         WSAGetLastError()
  78.  
  79. (* Authoritative Answer: Host not found *)
  80. #define WSAHOST_NOT_FOUND       (WSABASEERR+1001)
  81. #define HOST_NOT_FOUND          WSAHOST_NOT_FOUND
  82.  
  83. (* Non-Authoritative: Host not found, or SERVERFAIL *)
  84. #define WSATRY_AGAIN            (WSABASEERR+1002)
  85. #define TRY_AGAIN               WSATRY_AGAIN
  86.  
  87. (* Non-recoverable errors, FORMERR, REFUSED, NOTIMP *)
  88. #define WSANO_RECOVERY          (WSABASEERR+1003)
  89. #define NO_RECOVERY             WSANO_RECOVERY
  90.  
  91. (* Valid name, no data record of requested type *)
  92. #define WSANO_DATA              (WSABASEERR+1004)
  93. #define NO_DATA                 WSANO_DATA
  94.  
  95. (* no address, look for MX record *)
  96. #define WSANO_ADDRESS           WSANO_DATA
  97. #define NO_ADDRESS              WSANO_ADDRESS
  98.